//
//  UIFont+Category.m
//  RiceBasket
//
//  Created by DwZeng on 2021/1/15.
//

#import "UIFont+Category.h"

@implementation UIFont (Category)

+(UIFont *)fontOfSize:(CGFloat)size{
    CGFloat adjustSize = size * ScreenScale;
    return [UIFont systemFontOfSize:adjustSize];
}
+(UIFont *)boldFontOfSize:(CGFloat)size{
    CGFloat adjustSize = size * ScreenScale;
    return [UIFont boldSystemFontOfSize:adjustSize];
}

+(UIFont *)fontName:(NSString *)name size:(CGFloat)size{
    CGFloat adjustSize = size * ScreenScale;
    return [UIFont fontWithName:name size:adjustSize];
}

@end
